
export default {
  page:(data:any)=>window.$http.post('/api/userprms/user/page', data),
  create:(data:any)=>window.$http.post('/api/userprms/user/create', data),
  delete:(data:any)=>window.$http.delete('/api/userprms/user/delete', data),
  get:(id:any)=>window.$http.get(`/api/userprms/user/get/${id}`),
  update:(data:any)=>window.$http.post(`/api/userprms/user/update`,data),

  rolePage:(data:any)=>window.$http.post('/api/userprms/user/role/page', data),
  roleRegain:(data:any)=>window.$http.post('/api/userprms/user/role/regain', data),
  roleAvailable:(data:any)=>window.$http.post('/api/userprms/user/role/available', data),
  roleAllocate:(data:any)=>window.$http.post('/api/userprms/user/role/allocate', data),
  rolePriority:(data:any)=>window.$http.post('/api/userprms/user/role/priority', data),

  prmsPage:(data:any)=>window.$http.post('/api/userprms/user/prms/page', data),
  prmsRegain:(data:any)=>window.$http.post('/api/userprms/user/prms/regain', data),
  prmsAvailable:(data:any)=>window.$http.post('/api/userprms/user/prms/available', data),
  prmsAllocate:(data:any)=>window.$http.post('/api/userprms/user/prms/allocate', data),
  prmsDisable:(data:any)=>window.$http.post('/api/userprms/user/prms/disable', data),
  prmsAllocated:(data:any)=>window.$http.post('/api/userprms/user/prms/allocated', data),
}